<?php

namespace app\api\model;

use app\common\enums\StatusEnum;
use app\common\controller\Send;

class Advertisement extends \app\common\model\Advertisement
{
    
    use send;
    /**
     * 添加用户数据
     * @param $phone
     * @return mixed
     * @throws \think\Exception\DbException
     */
    public static function getAdvertisementOne()
    {
        $advertisement = new Advertisement();
        $data = self::getAdvertisementInfo();
        $data['image'] = config('file_prefix') .$data['image'];
        if(!$data){
            return self::sendResult(141, [], '没有该信息');
        }else{
            return self::sendResult(self::$okCode, $data,'');
        }
        
        
    }
}